﻿using System;
using UnityEngine;

// Token: 0x02000031 RID: 49
public class ZombifyAfterDeath : MonoBehaviour
{
	// Token: 0x060000D2 RID: 210 RVA: 0x00010ADC File Offset: 0x0000ECDC
	private void Start()
	{
		this.body = base.GetComponent<BodyScript>();
	}

	// Token: 0x060000D3 RID: 211 RVA: 0x00010AEA File Offset: 0x0000ECEA
	private void Update()
	{
		if (!this.body.alive)
		{
			GameManager.main.StartCoroutine("ZombifyCharacterEnemy", this.body);
			Object.Destroy(this);
		}
	}

	// Token: 0x040001C9 RID: 457
	private BodyScript body;
}
